<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><a href="../classes/Application.html">Application</a></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><a href="../classes/Button.html">Button</a></li>
  <li><a href="../classes/CaptureView.html">CaptureView</a></li>
  <li><a href="../classes/CheckBox.html">CheckBox</a></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><a href="../classes/FileUtils.html">FileUtils</a></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><a href="../classes/Image.html">Image</a></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><a href="../classes/Label.html">Label</a></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><a href="../classes/NavController.html">NavController</a></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><a href="../classes/TabBarController.html">TabBarController</a></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><a href="../classes/TextView.html">TextView</a></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><a href="../classes/View.html">View</a></li>
  <li><strong>ViewController</strong></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>ViewController</code></h1>
<p>ViewController是MVC中的C(控制器)层，它的作用是用于View的管理、控制视图及ViewController之间的通信与协调。ViewController是所有LuaApp中Controller的基类。</p>
<p>

</p>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#ViewController:new">ViewController:new ()</a></td>
	<td class="summary">创建对象</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:load">ViewController:load (layout[, valueMap])</a></td>
	<td class="summary">加载xml布局</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:createLoader">ViewController:createLoader (layout)</a></td>
	<td class="summary">创建布局加载器，用于使用布局构建cell等</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:loadSkin">ViewController:loadSkin (skin)</a></td>
	<td class="summary">加载皮肤配置文件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:getTitle">ViewController:getTitle ()</a></td>
	<td class="summary">获取标题</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:setTitle">ViewController:setTitle (title)</a></td>
	<td class="summary">设置标题</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:getNavigationController">ViewController:getNavigationController ()</a></td>
	<td class="summary">获取导航控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:getTabBarController">ViewController:getTabBarController ()</a></td>
	<td class="summary">获取TabBar控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:getNavigationBarItem">ViewController:getNavigationBarItem ()</a></td>
	<td class="summary">获取导航控制组件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:presentModalViewController">ViewController:presentModalViewController (ViewController, bAnimation)</a></td>
	<td class="summary">弹出一个模态ViewController</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:dismissModalViewController">ViewController:dismissModalViewController (bAnimation)</a></td>
	<td class="summary">移除模态ViewController</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isKeypadEnabled">ViewController:isKeypadEnabled ()</a></td>
	<td class="summary">是否相应按键事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isKeypadEnabled">ViewController:isKeypadEnabled (bEnable)</a></td>
	<td class="summary">设置响应按键事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:getView">ViewController:getView ()</a></td>
	<td class="summary">获取根视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:addViewFromSuperview">ViewController:addViewFromSuperview (supperView)</a></td>
	<td class="summary">从父视图添加该子视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:removeViewFromSuperview">ViewController:removeViewFromSuperview ()</a></td>
	<td class="summary">从父视图移除该视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:setTouchEnabled">ViewController:setTouchEnabled (bEnable)</a></td>
	<td class="summary">设置响应触摸事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isTouchEnabled">ViewController:isTouchEnabled ()</a></td>
	<td class="summary">是否响应触摸事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:setScrollEnabled">ViewController:setScrollEnabled (bEnable)</a></td>
	<td class="summary">设置允许滚动</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isScrollEnabled">ViewController:isScrollEnabled ()</a></td>
	<td class="summary">是否允许滚动</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:setHorizontalScrollEnabled">ViewController:setHorizontalScrollEnabled (bEnable)</a></td>
	<td class="summary">设置允许水平方向滚动</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isHorizontalScrollEnabled">ViewController:isHorizontalScrollEnabled ()</a></td>
	<td class="summary">是否允许水平方向滚动</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:setVerticalScrollEnabled">ViewController:setVerticalScrollEnabled (bEnable)</a></td>
	<td class="summary">设置允许垂直方向滚动</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isVerticalScrollEnabled">ViewController:isVerticalScrollEnabled ()</a></td>
	<td class="summary">是否允许垂直方向滚动</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:setPriorityScroll">ViewController:setPriorityScroll (bool)</a></td>
	<td class="summary">设置优先滚动</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isPriorityScroll">ViewController:isPriorityScroll ()</a></td>
	<td class="summary">是否优先滚动</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:setReachBoundaryHandOverToSuperview">ViewController:setReachBoundaryHandOverToSuperview (bool)</a></td>
	<td class="summary">setReachBoundaryHandOverToSuperview</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isReachBoundaryHandOverToSuperview">ViewController:isReachBoundaryHandOverToSuperview ()</a></td>
	<td class="summary">isReachBoundaryHandOverToSuperview</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:setTouchEventScrollHandOverToSuperview">ViewController:setTouchEventScrollHandOverToSuperview (bool)</a></td>
	<td class="summary">setTouchEventScrollHandOverToSuperview</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isTouchEventScrollHandOverToSuperview">ViewController:isTouchEventScrollHandOverToSuperview ()</a></td>
	<td class="summary">isTouchEventScrollHandOverToSuperview</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:setMouseMovedEnabled">ViewController:setMouseMovedEnabled (bEnable)</a></td>
	<td class="summary">设置允许鼠标移动</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isMouseMovedEnabled">ViewController:isMouseMovedEnabled ()</a></td>
	<td class="summary">是否允许鼠标移动</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:setMouseScrollWheelEnabled">ViewController:setMouseScrollWheelEnabled (bEnable)</a></td>
	<td class="summary">设置允许鼠标滚轮</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isMouseScrollWheelEnabled">ViewController:isMouseScrollWheelEnabled ()</a></td>
	<td class="summary">是否允许鼠标滚轮</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:getZLevel">ViewController:getZLevel ()</a></td>
	<td class="summary">获取zlevel</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isReachBoundaryLeft">ViewController:isReachBoundaryLeft ()</a></td>
	<td class="summary">是否到达左边边界</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isReachBoundaryRight">ViewController:isReachBoundaryRight ()</a></td>
	<td class="summary">是否到达右边边界</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isReachBoundaryRight">ViewController:isReachBoundaryRight ()</a></td>
	<td class="summary">是否到达上边边界</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:isReachBoundaryRight">ViewController:isReachBoundaryRight ()</a></td>
	<td class="summary">是否到达下边边界</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:getViewByTextTag">ViewController:getViewByTextTag ()</a></td>
	<td class="summary">根据标签获取视图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:setCallback">ViewController:setCallback (or, callback)</a></td>
	<td class="summary">设置回掉事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:viewDidLoad">ViewController:viewDidLoad ()</a></td>
	<td class="summary">视图加载回掉事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:viewDidUnload">ViewController:viewDidUnload ()</a></td>
	<td class="summary">视图卸载回掉事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:viewDidAppear">ViewController:viewDidAppear ()</a></td>
	<td class="summary">视图显示回掉事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:viewDidDisappear">ViewController:viewDidDisappear ()</a></td>
	<td class="summary">视图不显示回掉事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:viewSizeDidChanged">ViewController:viewSizeDidChanged ()</a></td>
	<td class="summary">视图尺寸改变回掉事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:keyBackClicked">ViewController:keyBackClicked ()</a></td>
	<td class="summary">返回按键回掉事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#ViewController:keyMenuClicked">ViewController:keyMenuClicked ()</a></td>
	<td class="summary">菜单按键回掉事件</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "ViewController:new"></a>
    <strong>ViewController:new ()</strong>
    </dt>
    <dd>
    创建对象



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>
        controller
    </ol>




</dd>
    <dt>
    <a name = "ViewController:load"></a>
    <strong>ViewController:load (layout[, valueMap])</strong>
    </dt>
    <dd>
    加载xml布局


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">layout</span>
         文件名或者xml字符串
        </li>
        <li><span class="parameter">valueMap</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.5">table</a></span>



         (<em>optional</em>)
        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        rslt
    </ol>




</dd>
    <dt>
    <a name = "ViewController:createLoader"></a>
    <strong>ViewController:createLoader (layout)</strong>
    </dt>
    <dd>
    创建布局加载器，用于使用布局构建cell等


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">layout</span>
         文件名或者xml字符串
        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/UILoader.html#">UILoader</a></span>
        loader
    </ol>


    <h3>See also:</h3>
    <ul>
         <a href="../classes/UILoader.html#">UILoader</a>
    </ul>


</dd>
    <dt>
    <a name = "ViewController:loadSkin"></a>
    <strong>ViewController:loadSkin (skin)</strong>
    </dt>
    <dd>
    加载皮肤配置文件


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">skin</span>
         文件名或者xml字符串
        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        rslt
    </ol>




</dd>
    <dt>
    <a name = "ViewController:getTitle"></a>
    <strong>ViewController:getTitle ()</strong>
    </dt>
    <dd>
    获取标题



    <h3>Returns:</h3>
    <ol>

        title
    </ol>




</dd>
    <dt>
    <a name = "ViewController:setTitle"></a>
    <strong>ViewController:setTitle (title)</strong>
    </dt>
    <dd>
    设置标题


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">title</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:getNavigationController"></a>
    <strong>ViewController:getNavigationController ()</strong>
    </dt>
    <dd>
    获取导航控制器



    <h3>Returns:</h3>
    <ol>

        NavigationController
    </ol>




</dd>
    <dt>
    <a name = "ViewController:getTabBarController"></a>
    <strong>ViewController:getTabBarController ()</strong>
    </dt>
    <dd>
    获取TabBar控制器



    <h3>Returns:</h3>
    <ol>

        TabBarController
    </ol>




</dd>
    <dt>
    <a name = "ViewController:getNavigationBarItem"></a>
    <strong>ViewController:getNavigationBarItem ()</strong>
    </dt>
    <dd>
    获取导航控制组件



    <h3>Returns:</h3>
    <ol>

        NavigationBarItem
    </ol>




</dd>
    <dt>
    <a name = "ViewController:presentModalViewController"></a>
    <strong>ViewController:presentModalViewController (ViewController, bAnimation)</strong>
    </dt>
    <dd>
    弹出一个模态ViewController


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">ViewController</span>



        </li>
        <li><span class="parameter">bAnimation</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:dismissModalViewController"></a>
    <strong>ViewController:dismissModalViewController (bAnimation)</strong>
    </dt>
    <dd>
    移除模态ViewController


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bAnimation</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:isKeypadEnabled"></a>
    <strong>ViewController:isKeypadEnabled ()</strong>
    </dt>
    <dd>
    是否相应按键事件



    <h3>Returns:</h3>
    <ol>

        bEnable
    </ol>




</dd>
    <dt>
    <a name = "ViewController:isKeypadEnabled"></a>
    <strong>ViewController:isKeypadEnabled (bEnable)</strong>
    </dt>
    <dd>
    设置响应按键事件


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bEnable</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:getView"></a>
    <strong>ViewController:getView ()</strong>
    </dt>
    <dd>
    获取根视图



    <h3>Returns:</h3>
    <ol>

        View
    </ol>




</dd>
    <dt>
    <a name = "ViewController:addViewFromSuperview"></a>
    <strong>ViewController:addViewFromSuperview (supperView)</strong>
    </dt>
    <dd>
    从父视图添加该子视图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">supperView</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:removeViewFromSuperview"></a>
    <strong>ViewController:removeViewFromSuperview ()</strong>
    </dt>
    <dd>
    从父视图移除该视图







</dd>
    <dt>
    <a name = "ViewController:setTouchEnabled"></a>
    <strong>ViewController:setTouchEnabled (bEnable)</strong>
    </dt>
    <dd>
    设置响应触摸事件


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bEnable</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:isTouchEnabled"></a>
    <strong>ViewController:isTouchEnabled ()</strong>
    </dt>
    <dd>
    是否响应触摸事件



    <h3>Returns:</h3>
    <ol>

        bEnable
    </ol>




</dd>
    <dt>
    <a name = "ViewController:setScrollEnabled"></a>
    <strong>ViewController:setScrollEnabled (bEnable)</strong>
    </dt>
    <dd>
    设置允许滚动


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bEnable</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:isScrollEnabled"></a>
    <strong>ViewController:isScrollEnabled ()</strong>
    </dt>
    <dd>
    是否允许滚动



    <h3>Returns:</h3>
    <ol>

        bEnable
    </ol>




</dd>
    <dt>
    <a name = "ViewController:setHorizontalScrollEnabled"></a>
    <strong>ViewController:setHorizontalScrollEnabled (bEnable)</strong>
    </dt>
    <dd>
    设置允许水平方向滚动


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bEnable</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:isHorizontalScrollEnabled"></a>
    <strong>ViewController:isHorizontalScrollEnabled ()</strong>
    </dt>
    <dd>
    是否允许水平方向滚动



    <h3>Returns:</h3>
    <ol>

        bEnable
    </ol>




</dd>
    <dt>
    <a name = "ViewController:setVerticalScrollEnabled"></a>
    <strong>ViewController:setVerticalScrollEnabled (bEnable)</strong>
    </dt>
    <dd>
    设置允许垂直方向滚动


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bEnable</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:isVerticalScrollEnabled"></a>
    <strong>ViewController:isVerticalScrollEnabled ()</strong>
    </dt>
    <dd>
    是否允许垂直方向滚动



    <h3>Returns:</h3>
    <ol>

        bEnable
    </ol>




</dd>
    <dt>
    <a name = "ViewController:setPriorityScroll"></a>
    <strong>ViewController:setPriorityScroll (bool)</strong>
    </dt>
    <dd>
    设置优先滚动


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bool</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:isPriorityScroll"></a>
    <strong>ViewController:isPriorityScroll ()</strong>
    </dt>
    <dd>
    是否优先滚动



    <h3>Returns:</h3>
    <ol>

        bool
    </ol>




</dd>
    <dt>
    <a name = "ViewController:setReachBoundaryHandOverToSuperview"></a>
    <strong>ViewController:setReachBoundaryHandOverToSuperview (bool)</strong>
    </dt>
    <dd>
    setReachBoundaryHandOverToSuperview


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bool</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:isReachBoundaryHandOverToSuperview"></a>
    <strong>ViewController:isReachBoundaryHandOverToSuperview ()</strong>
    </dt>
    <dd>
    isReachBoundaryHandOverToSuperview



    <h3>Returns:</h3>
    <ol>

        bool
    </ol>




</dd>
    <dt>
    <a name = "ViewController:setTouchEventScrollHandOverToSuperview"></a>
    <strong>ViewController:setTouchEventScrollHandOverToSuperview (bool)</strong>
    </dt>
    <dd>
    setTouchEventScrollHandOverToSuperview


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bool</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:isTouchEventScrollHandOverToSuperview"></a>
    <strong>ViewController:isTouchEventScrollHandOverToSuperview ()</strong>
    </dt>
    <dd>
    isTouchEventScrollHandOverToSuperview



    <h3>Returns:</h3>
    <ol>

        bool
    </ol>




</dd>
    <dt>
    <a name = "ViewController:setMouseMovedEnabled"></a>
    <strong>ViewController:setMouseMovedEnabled (bEnable)</strong>
    </dt>
    <dd>
    设置允许鼠标移动


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bEnable</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:isMouseMovedEnabled"></a>
    <strong>ViewController:isMouseMovedEnabled ()</strong>
    </dt>
    <dd>
    是否允许鼠标移动



    <h3>Returns:</h3>
    <ol>

        bEnable
    </ol>




</dd>
    <dt>
    <a name = "ViewController:setMouseScrollWheelEnabled"></a>
    <strong>ViewController:setMouseScrollWheelEnabled (bEnable)</strong>
    </dt>
    <dd>
    设置允许鼠标滚轮


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bEnable</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:isMouseScrollWheelEnabled"></a>
    <strong>ViewController:isMouseScrollWheelEnabled ()</strong>
    </dt>
    <dd>
    是否允许鼠标滚轮



    <h3>Returns:</h3>
    <ol>

        bEnable
    </ol>




</dd>
    <dt>
    <a name = "ViewController:getZLevel"></a>
    <strong>ViewController:getZLevel ()</strong>
    </dt>
    <dd>
    获取zlevel



    <h3>Returns:</h3>
    <ol>

        level
    </ol>




</dd>
    <dt>
    <a name = "ViewController:isReachBoundaryLeft"></a>
    <strong>ViewController:isReachBoundaryLeft ()</strong>
    </dt>
    <dd>
    是否到达左边边界



    <h3>Returns:</h3>
    <ol>

        breach
    </ol>




</dd>
    <dt>
    <a name = "ViewController:isReachBoundaryRight"></a>
    <strong>ViewController:isReachBoundaryRight ()</strong>
    </dt>
    <dd>
    是否到达右边边界



    <h3>Returns:</h3>
    <ol>

        breach
    </ol>




</dd>
    <dt>
    <a name = "ViewController:isReachBoundaryRight"></a>
    <strong>ViewController:isReachBoundaryRight ()</strong>
    </dt>
    <dd>
    是否到达上边边界



    <h3>Returns:</h3>
    <ol>

        breach
    </ol>




</dd>
    <dt>
    <a name = "ViewController:isReachBoundaryRight"></a>
    <strong>ViewController:isReachBoundaryRight ()</strong>
    </dt>
    <dd>
    是否到达下边边界



    <h3>Returns:</h3>
    <ol>

        breach
    </ol>




</dd>
    <dt>
    <a name = "ViewController:getViewByTextTag"></a>
    <strong>ViewController:getViewByTextTag ()</strong>
    </dt>
    <dd>
    根据标签获取视图



    <h3>Returns:</h3>
    <ol>

        view
    </ol>




</dd>
    <dt>
    <a name = "ViewController:setCallback"></a>
    <strong>ViewController:setCallback (or, callback)</strong>
    </dt>
    <dd>
    设置回掉事件


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">or</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
         int
        </li>
        <li><span class="parameter">callback</span>
            <span class="types"><span class="type">function</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "ViewController:viewDidLoad"></a>
    <strong>ViewController:viewDidLoad ()</strong>
    </dt>
    <dd>
    视图加载回掉事件







</dd>
    <dt>
    <a name = "ViewController:viewDidUnload"></a>
    <strong>ViewController:viewDidUnload ()</strong>
    </dt>
    <dd>
    视图卸载回掉事件







</dd>
    <dt>
    <a name = "ViewController:viewDidAppear"></a>
    <strong>ViewController:viewDidAppear ()</strong>
    </dt>
    <dd>
    视图显示回掉事件







</dd>
    <dt>
    <a name = "ViewController:viewDidDisappear"></a>
    <strong>ViewController:viewDidDisappear ()</strong>
    </dt>
    <dd>
    视图不显示回掉事件







</dd>
    <dt>
    <a name = "ViewController:viewSizeDidChanged"></a>
    <strong>ViewController:viewSizeDidChanged ()</strong>
    </dt>
    <dd>
    视图尺寸改变回掉事件







</dd>
    <dt>
    <a name = "ViewController:keyBackClicked"></a>
    <strong>ViewController:keyBackClicked ()</strong>
    </dt>
    <dd>
    返回按键回掉事件







</dd>
    <dt>
    <a name = "ViewController:keyMenuClicked"></a>
    <strong>ViewController:keyMenuClicked ()</strong>
    </dt>
    <dd>
    菜单按键回掉事件







</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
